<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>健康干预</title>
    <link rel="stylesheet" href="../css/page-health-orderDetail.css"/>
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/healthmobile.js"></script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><a href="/pages/index.html"><font color="white">回到首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="icon-more"><a href="/logout"><font color="white">退出</font></a></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="contentBox">
        <div class="card">
            <div class="project-img">
                <img :src="imgUrl" width="100%" height="100%"/>
            </div>
            <div class="project-text">
                <h4 class="tit">{{healthAdvice.setmealName}}</h4>
                <p class="subtit"><font color="gray">体检人: {{healthAdvice.memberName}}</font></p>
                <p class="subtit"><font color="gray">体检日期: {{healthAdvice.examDate}}</font></p>
            </div>
        </div>
        <div class="table-listbox">
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <span>健康师建议及治疗方案</span>
            </div>
            <div class="box-title">
                <span class="path1"></span><span class="path2"></span>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;体检报告:&nbsp;&nbsp; {{healthAdvice.examResult}}</span>
                <br>
                <hr>
                <span class="path1"></span><span class="path2"></span>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;健康师意见:&nbsp;&nbsp; {{healthAdvice.advice}}</span>
                <br>
                <hr>
                <span class="path1"></span><span class="path2"></span>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;建议药物:&nbsp;&nbsp;
                    <span class="table-item" v-for="medicine in healthAdvice.medicines">
                        <span class="item flex2">{{medicine}}</span>、
                    </span>
                </span>
                <br>
                <hr>
                <span class="path1"></span><span class="path2"></span>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;建议运动:&nbsp;&nbsp;
                    <span class="table-item" v-for="sport in healthAdvice.sports">
                        <span class="item flex2">{{sport}}</span>、
                    </span>
                </span>
                <br>
                <hr>
                <span class="path1"></span><span class="path2"></span>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;建议膳食:&nbsp;&nbsp;
                    <span class="table-item" v-for="food in healthAdvice.foods">
                        <span class="item flex2">{{food}}</span>、
                    </span>
                </span>
            </div>

            <div class="box-table">
                <div class="box-button">
                    <a @click="whyClickMe" class="order-btn">去点评一下吧~</a>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    var vue = new Vue({
        el: '#app',
        data: {
            imgUrl: '',
            healthAdvice: {
                // img: '2841946b-81d4-4e2c-9a6e-dc91553b0cd9.jpg',
                // setmealName: '套餐aa',
                // memberName: '颜子',
                // examDate: '2019-10-10',
                // examResult: '肾功能障碍',
                // advice: '少撸',
                // medicines: ['肾宝', '枸杞'],
                // sports: ['俯卧撑', '跑步'],
                // foods: ['韭菜', '龙虾', '鲍鱼']
            },
        },
        methods: {
            whyClickMe() {
                window.location.href='https://m.dianping.com/';
                // alert('点你妈,这个功能没做!')
            }
        },
        mounted() {
            axios.get("/member/findhealthAdvice.do").then((response) => {
                if (response.data.flag) {
                    this.healthAdvice = response.data.data;
                    this.imgUrl = 'http://qvg9clowq.hd-bkt.clouddn.com/' + this.healthAdvice.img;
                }
            });
        }
    });
</script>
</body>